﻿<%@ Control Language="VB" AutoEventWireup="false" CodeFile="Login.ascx.vb" Inherits="FrontEnd_Control_Users_Login" %>
<script type="text/javascript">
    function ajaxJquery() {
        $(function () {

            $("#<%=txtUserName.ClientID() %>").focus();


            $(":input").keypress(function (e) {
                if (e.keyCode == 13) {
                    $("#<%=btnLogin.ClientID()%>").click();
                    return false;
                }
            });

        });
    }

</script>
<style type="text/css">
    .TitlePopup { font: bold 11px Arial, Tahoma, Verdana, Helvetica, sans-serif; color: #066bb9; text-transform: uppercase; text-align: left; }
</style>
<asp:UpdatePanel ID="UpdatePanelLogin" runat="server">
    <ContentTemplate>
        <div class="box-login">
            <div class="title-login">
                <span class="flabel_login">Đăng nhập</span> hoặc
                <asp:HyperLink ID="hplRegist" Text=" Đăng ký" runat="server"></asp:HyperLink>
            </div>
            <div class="NoiDungHoTro">
                <div class="content_viewinfo">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                        <tr>
                            <td class="text_form_login" valign="middle" align="right">
                                Tên đăng nhập:
                            </td>
                            <td valign="middle" align="left" class="text_form_login_2">
                                <asp:TextBox ID="txtUserName" CssClass="text-box" MaxLength="16" runat="server"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName"
                                    ErrorMessage="Nhập tên đăng nhập" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr style="height: 5px;">
                        </tr>
                        <tr>
                            <td class="text_form_login" valign="middle" align="right">
                                Mật khẩu:
                            </td>
                            <td valign="middle" align="left" class="text_form_login_2">
                                <asp:TextBox ID="txtPassword" CssClass="text-box" MaxLength="16" runat="server" TextMode="Password"></asp:TextBox>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtPassword"
                                    ErrorMessage="Nhập mật khẩu" SetFocusOnError="True">*</asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr style="height: 5px;">
                        </tr>
                        <tr>
                            <td class="text_form_login" valign="middle" align="right">
                                &nbsp;
                            </td>
                            <td valign="middle" align="left" class="text_form_login_2">
                                <asp:CheckBox ID="chkRemember" runat="server" Text=" Ghi nhớ đăng nhập" />
                                <span>|</span>
                                <asp:HyperLink ID="hplRemember" Text="Quên mật khẩu!" runat="server" ></asp:HyperLink>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td class="NutDongY">
                                <asp:Button ID="btnLogin" CssClass="button3 btn btn-info" runat="server" Text="Đăng nhập" Style="float: left;" />
                                <input type="reset" value="Đặt lại" class="btn" style="float: left;
                                    margin-left: 10px;" />
                            </td>
                        </tr>
                        <tr>
                            <td>
                                &nbsp;
                            </td>
                            <td class="text_note_login">
                                <asp:Label ID="lblLoginFail" CssClass="text_label" runat="server" Text="Tên đăng nhập hoặc mật khẩu chưa chính xác. <br> Hãy nhập lại."
                                    Visible="False"></asp:Label>
                                <asp:ValidationSummary ID="ValidationSummary1" runat="server" ShowMessageBox="True"
                                    ShowSummary="False" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
